package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 消费商品清单缓存表  实体类
 *
 * @author makejava
 * @since 2022-09-14 14:49:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_goods_list_process")
public class EntityXfGoodsListProcess implements Serializable {

    private static final long serialVersionUID = 887295918993005351L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 单位Id
     */
    private Long comId;

    private String deviceNo;
    private Integer pointId;
    private Integer merchId;
    @JsonProperty("pId")
    private Long pId;
    private Integer deptId;
    private Integer receiptId;
    private String receiptName;
    private String orderNo;
    private Date consTime;
    private Date mealDate;
    private Integer mealNo;
    private Integer consType;
    private Integer ifRefund;
    private Integer dishesId;
    private String dishesName;
    private Integer priceMode;
    private Integer weightNumber;
    private Integer dishesPrice;
    private Integer unitPrice;
    private String monthValue;

    /**
     * 生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;



    /**
     * CREATE TABLE `xf_goods_listProcess` (
     *   `id` int(10) unsigned NOT NULL AUTOINCREMENT,
     *   `comId` int(11) NOT NULL COMMENT '单位编号',
     *   `deviceNo` varchar(20) DEFAULT NULL COMMENT '设备编号',
     *   `pointId` int(11) DEFAULT '0' COMMENT '收费点id，最下级收费点',
     *   `merchId` int(11) DEFAULT '0' COMMENT '商户id',
     *   `pId` int(11) DEFAULT '0' COMMENT '人员id',
     *   `deptId` int(11) DEFAULT '0' COMMENT '部门Id',
     *   `receiptId` int(11) DEFAULT '0' COMMENT '取餐点id，最下级取餐点',
     *   `receiptName` varchar(255) DEFAULT '' COMMENT '取餐点地址',
     *   `orderNo` varchar(50) NOT NULL DEFAULT '' COMMENT '订单号',
     *   `consTime` datetime DEFAULT NULL COMMENT '消费时间',
     *   `mealDate` date DEFAULT NULL COMMENT '餐段归属日期',
     *   `mealNo` int(11) DEFAULT '0' COMMENT '餐段编号（1-99）',
     *   `consType` tinyint(4) DEFAULT '0' COMMENT '消费类型： 1:饭堂，2：商店',
     *   `ifRefund` tinyint(4) DEFAULT '0' COMMENT '是否退款 0:未退款，1:已退款 ',
     *   `dishesId` int(11) NOT NULL COMMENT '菜品编号',
     *   `dishesName` varchar(50) DEFAULT '' COMMENT '菜品名称',
     *   `priceMode` tinyint(4) DEFAULT '20' COMMENT '11：按重量（50g）；20：例；21：小；22：中；23：大',
     *   `weightNumber` int(11) DEFAULT '0' COMMENT '重量（单位：克）或份数',
     *   `dishesPrice` int(11) DEFAULT '0' COMMENT '菜品价格（以分为单位）',
     *   `monthValue` char(6) DEFAULT '' COMMENT '年月',
     *   `createTime` datetime NOT NULL COMMENT '数据库生成记录时间',
     *   PRIMARY KEY (`id`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消费商品清单缓存表';
     */
}

